import type { Dispatch, SetStateAction } from 'react';

export interface FieldsCityListOptions {
  page: number;
  pageSize: number;
  keyword: string;
}

export interface FieldsCityInfo {
  id: string | number;
  /** 城市简称 */
  name: string;
  /** 城市全称 */
  aliasName: string;
  /** 城市图片 */
  img: string;
  /** 城市描述 */
  description: string;
  /** 信息创建时间 */
  createTime: Date;
  /** 信息更新时间 */
  updateTime: Date;
}

export type FieldsCityInfoRow = Omit<FieldsCityInfo, 'createTime' | 'updateTime'>;

export interface CurrentRowHookOptions {
  refresh: () => Promise<void>;
  setLoading: Dispatch<SetStateAction<boolean>>;
}
